import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2023-03-03
 * Time: 15:09
 */
public class Test{
    public static void main(String[] args) {
        System.out.println("hello world");
    }
    public static void main8(String[] args) {
        int a = 0;
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        System.out.println("二进制奇数位");
        for (int i = 30; i >= 0 ; i -= 2) {
            System.out.print(((n >> i) & 1)+" ");
        }7
        System.out.println();
        System.out.println("二进制偶数位");
        for (int i = 31; i >=1 ; i -= 2) {
            System.out.print(((n >> i) & 1)+" ");
        }
    }
    public static void main7(String[] args) {
        Scanner scan = new Scanner(System.in);
        String password = "123456";
        int i = 0;
        int falg = 0;
        for (i = 0; i < 3; i++) {
            System.out.println("请输入密码");
            String arr = scan.next();
            if(password.equals(arr)){
                System.out.println("密码输入正确");
                System.out.println("登陆成功");
                break;
            }
            else{
                System.out.println("密码错误，请重新输入");
                falg++;
            }
        }
        if(falg == 3){
            System.out.println("三次密码均错误，退出程序");
        }

    }
    public static void main6(String[] args) {
        int sum = 0;
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        while(n > 9){
            sum = n % 10;
            System.out.print(sum+" ");
            n /= 10;
        }
        System.out.print(n);
    }
    public static void main5(String[] args) {
        for (int i = 1; i <= 9 ; i++) {
            for (int j = 1; j <= i ; j++) {
                System.out.print(j+"*"+i+"="+i*j+" ");
            }
            System.out.println();
        }
    }
    public static void main4(String[] args) {
        int count = 0;
        for (int i = 1; i <= 100 ; i++) {
            if(i % 10 == 9 || i /10 == 9){
                count++;
            }
        }
        System.out.println("1-100之间有"+count+"个9");
    }
    public static void main3(String[] args) {
        int count = 0;
        for (int i = 1000; i <= 2000 ; i++) {
            if((i % 4 == 0) && (i % 100 != 0)){
                System.out.println(i);
                count++;
            }
            if(i % 400 == 0){
                System.out.println(i);
                count++;
            }
        }
        System.out.println("1000-2000年之间的闰年有"+count+"个");
    }
    public static void main2(String[] args) {
        int j;
        int count = 0;
        for (int i = 1; i <= 100 ; i++) {
            for (j = 2;j < i ; j++) {
                if(i % j == 0){
                    break;
                }
            }
            if(i == j){
                System.out.println(i);
                count++;
            }
        }
        System.out.println("1-100之间的素数有"+count+"个");
    }
    public static void main1(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int i = 2;
        for(;i <= n / 2;i++){
            if(n % i == 0){
                System.out.println("不是素数");
                break;
            }
        }
        if(i > n / 2){
            System.out.println("是素数");
        }
    }
}
